<!DOCTYPE html>
<html>
<meta charset="utf-8">
<head th:include="include :: header"></head>
<body class="gray-bg">
	<div class="wrapper wrapper-content ">
		<div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						<form class="form-horizontal m-t" id="signupForm">
						<input id="id" name="id" th:value="${payment.id}"  type="hidden">
							<div class="form-group">
								<label class="col-sm-3 control-label">付款时间：</label>
								<div class="col-sm-8">
									<input type="text" class="laydate-icon layer-date form-control" th:value="${#dates.format(payment.payDate, 'yyyy-MM-dd')}" id="payDate" name="payDate" placeholder="请选择付款时间"
										   onclick="laydate({istime: true, format: 'YYYY-MM-DD'})" style="background-color: #fff;" readonly="readonly"/>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">采购合同编号：</label>
								<div class="col-sm-8">
									<select data-placeholder="采购合同编号" name="purId" class="form-control chosen-select" tabindex="2" required>
										<option value="">采购合同编号</option>
										<option th:each="groupDO : ${groupDOList}" th:value="${groupDO.id}" th:text="${groupDO.groupid}"
												th:selected="${groupDO.id} == ${payment.purId}"></option>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">采购合同总额：</label>
								<div class="col-sm-8">
									<input id="purAmount" name="purAmount" th:value="${payment.purAmount}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">申请金额：</label>
								<div class="col-sm-8">
									<input id="appliAmount" name="appliAmount" th:value="${payment.appliAmount}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">收款方：</label>
								<div class="col-sm-8">
									<input id="payee" name="payee" th:value="${payment.payee}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">收款账号：</label>
								<div class="col-sm-8">
									<input id="payeeAccount" name="payeeAccount" th:value="${payment.payeeAccount}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">开户行：</label>
								<div class="col-sm-8">
									<input id="bankName" name="bankName" th:value="${payment.bankName}" class="form-control" type="text">
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">付款方：</label>
								<div class="col-sm-8">
									<select data-placeholder="收款方" name="paymentComid" class="form-control chosen-select-paymentComid" tabindex="2" required>
										<option value="">付款方</option>
										<option th:each="companyDO : ${companyDOList}" th:value="${companyDO.id}" th:text="${companyDO.name}"
												th:selected="${companyDO.id} == ${payment.paymentComid}"></option>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">付款方式：</label>
								<div class="col-sm-8">
									<select data-placeholder="付款方式" id="paymentTypeid" name="paymentTypeid"
											class="form-control chosen-select-paymentComid" tabindex="2" required>
										<option value="">付款方式</option>
										<option th:each="paytype : ${paytypeList}" th:value="${paytype.id}" th:text="${paytype.name}"
												th:selected="${paytype.id} == ${payment.paymentTypeid}"></option>
									</select>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">部门领导：</label>
								<div class="col-sm-8">
									<input id="depetLeaderid" name="depetLeaderid" th:value="${payment.depetLeaderid}"
										   class="form-control" type="hidden">
									<input id="depetLeadername" name="depetLeadername" th:value="${payment.depetLeadername}"
										   class="form-control" type="text" readonly>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">摘要：</label>
								<div class="col-sm-8">
									<textarea id="summary" name="summary" th:text="${payment.summary}" class="form-control"></textarea>
								</div>
							</div>
							<div class="form-group">
								<label class="col-sm-3 control-label">备注：</label>
								<div class="col-sm-8">
									<textarea id="remark" name="remark" th:text="${payment.remark}" class="form-control"></textarea>
								</div>
							</div>
							<div class="form-group">
								<div class="col-sm-8 col-sm-offset-3">
									<button type="submit" class="btn btn-primary">提交</button>
								</div>
							</div>
						</form>
					</div>
				</div>
			</div>
	</div>
	</div>
	<div th:include="include::footer"></div>
	<script type="text/javascript" src="/js/appjs/fin/payment/edit.js">
	</script>
</body>
</html>
